package tech.aistar.entity.daoyou.GuideBills;

import java.io.Serializable;

 public class GuideSetBillTime implements Serializable,Comparable{
    public GuideSetBillTime(String starttime, String endtime) {
        this.starttime = starttime;
        this.endtime = endtime;
    }
    private String starttime;
    private String endtime;
    public String getStarttime() {
        return starttime;
    }
    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }
    public String getEndtime() {
        return endtime;
    }
    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }
    @Override
    public String toString() {
        return "Timess{" +
                "starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                '}';
    }
    @Override
    public int compareTo(Object obj) {
        if (!(obj instanceof GuideSetBillTime)){
            throw new RuntimeException("不是正确对象");
        }
        GuideSetBillTime p=(GuideSetBillTime)obj;
        if(p.getStarttime().compareTo(this.starttime)>0)
            return -1;
        if(p.getStarttime().compareTo(this.starttime)<0)
            return  1;
        return 0;
    }

    public GuideSetBillTime() {

    }
}